package com.ktwlrj.core.util.xpoi.model;

import lombok.Data;
import org.apache.poi.ss.usermodel.CellStyle;

import java.io.Serializable;

/**
 * 模板数据源字段位置信息实体
 *
 * @author zhouxuanhong
 * @date 2019-08-02 12:20
 * @since JDK1.8
 */
@Data
public class DataSourceField implements Serializable {
    private static final long serialVersionUID = 1L;

    private int rowIdx;

    private int colIdx;

    private CellStyle cellStyle;

    private boolean isMerge;

    private int mergeStart;

    private int mergeEnd;

    private String valueType;

    private String format;

    public DataSourceField() {
    }

    public DataSourceField(int rowIdx, int colIdx, CellStyle cellStyle) {
        this.rowIdx = rowIdx;
        this.colIdx = colIdx;
        this.cellStyle = cellStyle;
    }

    public DataSourceField(int rowIdx, int colIdx, CellStyle cellStyle, boolean isMerge, int mergeStart, int mergeEnd) {
        this.rowIdx = rowIdx;
        this.colIdx = colIdx;
        this.cellStyle = cellStyle;
    }
}
